package com.spring.gop.proj.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.gop.proj.dao.mapper.AdminMapper;
import com.spring.gop.proj.interfaces.AdminDao;
import com.spring.gop.proj.model.User;

@Service
public class AdminDaoImpl implements AdminDao {

	@Autowired AdminMapper adminMapper;
	
	public List<User> allMember() {
		return adminMapper.allMember();
	}
	public List<User> idList(String search_text){
		return adminMapper.idList(search_text);
	}
	public List<User> nameList(String search_text){
		return adminMapper.nameList(search_text);
	}
	public List<User> searchall(String search_text){
		return adminMapper.searchall(search_text);
	}
	public void delMember(String member_id) {
		adminMapper.delMember(member_id);
	}
	public void updateDelMemberBuy(String member_id) {
		adminMapper.updateDelMemberBuy(member_id);
	}
	public void updateDelMemberPoint(String member_id) {
		adminMapper.updateDelMemberPoint(member_id);
	}
	public void updateDelMemberQna1(String member_id) {
		adminMapper.updateDelMemberQna1(member_id);
	}
	public void updateDelMemberQna2(String member_id) {
		adminMapper.updateDelMemberQna2(member_id);
	}
}
